﻿using System;
using System.Collections.Generic;
using System.Linq;
using Autodesk.Revit.DB;

namespace HYElectricSetting
{
	public class ConduitTypeData
	{
		public ConduitTypeData(string name)
		{
			this.Name = name;
			this.SizeSet = new List<int>();
			this.IsWithFitting = true;
			this.Elbow = null;
			this.Tee = null;
			this.Cross = null;
			this.Transition = null;
			this.Union = null;
			this.BaseConduitType = null;
		}

		public ConduitTypeData(ConduitTypeData other)
		{
			bool flag = other != null;
			if (flag)
			{
				this.Name = other.Name;
				this.SizeSet = other.SizeSet.ToList<int>();
				this.IsWithFitting = other.IsWithFitting;
				this.Elbow = other.Elbow;
				this.Tee = other.Tee;
				this.Cross = other.Cross;
				this.Transition = other.Transition;
				this.Union = other.Union;
				this.BaseConduitType = other.BaseConduitType;
			}
		}

		public string Name { get; set; }

		public List<int> SizeSet { get; set; }

		public bool IsWithFitting { get; set; }

		public FamilySymbol Elbow { get; set; }

		public FamilySymbol Tee { get; set; }

		public FamilySymbol Cross { get; set; }

		public FamilySymbol Transition { get; set; }

		public FamilySymbol Union { get; set; }

		public ElementId BaseConduitType { get; set; }

		public override string ToString()
		{
			return this.Name;
		}
	}
}
